<?php
include("../include/config.inc.php");
//include("userlogincheck.php");

$orderNo=$_REQUEST["orderNo"];

if(!CheckId($orderNo))
{
	PhpBox("参数错误");
	GotoPage("h");
	exit();
}
$sql="SELECT * FROM ".tableprefix."order where orderNo='$orderNo'";
$result=$db->query($sql);
$row=$db->fetch_array($result);
$time_end=$row["time_end"];
$db->free_result($result);
?>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>支付状态 - 订戏会</title>
<meta name="renderer" content="webkit">
<meta http-equiv="X-UA-Compatible" content="IE=9,Chrome=1">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="apple-mobile-web-app-capable" content="yes" />
<meta name="apple-mobile-web-app-status-bar-style" content="black" />
<meta name="keywords" content="">
<meta name="description" content="">
<link rel="stylesheet" type="text/css" href="../css/public.css">
<link rel="stylesheet" type="text/css" href="../css/user.css">
</head>
<body>
<?php if($time_end==''){?>
<div class="paystatus">
	<div class="paystatus_icon"><img src="../images/payno.png"></div>
	<div class="paystatus_title">订单支付失败</div>
</div>
<div class="paybtn"><a href="../pay/wxpay/deposit.php?orderNo=<?php echo $orderNo;?>"><div class="paybox">重新支付</div></a></div>
<div class="paybtn"><a href="ordershow.php?orderNo=<?php echo $orderNo;?>"><div class="paybox">查看订单</div></a></div>
<?php }else{?>
<div class="paystatus">
	<div class="paystatus_icon"><img src="../images/payok.png"></div>
	<div class="paystatus_title">订单支付成功</div>
</div>
<div class="paybtn"><a href="ordershow.php?orderNo=<?php echo $orderNo;?>"><div class="paybox">订单详情</div></a></div>
<div class="paybtn"><a href="../category.php"><div class="paybox">继续订戏</div></a></div>
<?php }?>
</body>
</html>